package com.d09cnpm2.group8;

import com.d09cnpm2.group8.map.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class SplashScreen extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.splash);
	Thread timer = new Thread() {
	    public void run() {
		try {
		    sleep(1000);
		} catch (InterruptedException e) {
		    e.printStackTrace();
		} finally {
		    Intent i = new Intent(SplashScreen.this,
			    MainActivity.class);
		    startActivity(i);
		}
	    }
	};
	timer.start();
    }

}
